//
//  UploadDelegate.h
//  iFlick
//
//  Created by 张 霄鹤 on 10-2-8.
//  Copyright 2010 xhzhang. All rights reserved.
//

#import <Foundation/Foundation.h>


/**
 * 上传状态提示
 */
@interface UploadDelegate : NSObject {
	NSMutableData *_data;
}

/**
 * 清空临时数据
 */
- (void)reset;



- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error;

- (void)connectionDidFinishLoading:(NSURLConnection *)connection;

- (void)connection:(NSURLConnection *)connection
   didSendBodyData:(NSInteger)bytesWritten
 totalBytesWritten:(NSInteger)totalBytesWritten
totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite;

- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response;

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;


@end
